<template>
  <router-view v-slot="{ Component }">
    <keep-alive>
      <component :is="Component" :key="$route.name" v-if="$route.meta.cache" />
    </keep-alive>
    <component :is="Component" :key="$route.name" v-if="!$route.meta.cache" />
  </router-view>
</template>

<script setup lang="ts">
console.log(`当前运行环境: ${ import.meta.env.VITE_CURRENTMODE }`)
</script>

<style lang="less">
@import "./style/basic";
@import "./style/common";
</style>
